package com.shy.entity;

import java.util.Date;

public class User {
	private Integer userId;
	private String name;
	private Integer gender;
	private Date createTime;

	public User() {
	}
	
	public User(Integer userId, String name, Integer gender) {
		this.userId = userId;
		this.name = name;
		this.gender = gender;
		this.createTime = new Date();
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getGendenName(){
		return this.gender==0?"男":"女";
}

	
}
